/**
 * import.....相当于C语言中的 include<>
 */
import java.util.Arrays;
class Solution {
    public static String addBinary(String a, String b) {
        String c = "";
        int a1 = Integer.parseInt(a);
        int b1 = Integer.parseInt(b);
        int x = 0;
        while(b1!=0){
            x = a1^b1;
            int y = (a1&b1)<<1;
            a1 = x;
            b1 = y;
        }
        c += x;
        return c;
    }

    public static void main(String[] args) {
        System.out.println(Long.MAX_VALUE);
        System.out.println(addBinary("1110110101","1110111011"));
    }
}
public class Test {

    public static void main(String[] args) {
        int[][] array = new int[2][];
        array[0] = new int[3];
        array[1] = new int[5];
        System.out.println(Arrays.deepToString(array));
    }
    public static void main2(String[] args) {
        int[][] array = {{1,2,3},{2,3,4}};
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(array[i][j] + " ");
            }
            System.out.println();//换行
        }
    }
    public static void main1(String[] args) {
        int array[][] = {{1,2,3},{2,3,4}};
        //array1中的数组元素全都,是默认值0
        int[][] array1 = new int[2][3];
        int[][] array2 = new int[][]{{1,2,3},{2,3,4}};
        int[][] array3 = {{1,2,3},{2,3,4}};

        /**
         * 在JAVA中，
         * 可以使用Arrays.deepToString(数组名)来打印二维数组
         * 可以使用Arrays.ToString(数组名)来打印一维数组
         */
        System.out.println(Arrays.deepToString(array1));
        System.out.println(Arrays.deepToString(array2));
        System.out.println(Arrays.deepToString(array3));
    }
}
